﻿using System;
using System.CodeDom.Compiler;

namespace SWF
{
    public struct PrimitiveConstant8 : IPrimitive
    {
        public PrimitiveType PrimitiveType { get { return PrimitiveType.Constant8; } }
        public object Value { get { return Constant8Value; } }
        public int Length { get { return 1 + 1; } }
        public uint Constant8Value;

        public PrimitiveConstant8(SwfReader r)
        {
            Constant8Value = (uint)r.GetByte();
        }
    }
}
